// console.log(Object.is({name: '张三'}, {name: '张三'})
// );const obj = {
//     foo: 123,
//     get bar() { return 'abc' }
//   };
  
//   Object.getOwnPropertyDescriptors(obj)
//   console.log("🚀 ~  Object.getOwnPropertyDescriptors(obj):",  Object.getOwnPropertyDescriptors(obj))
const obj = { foo: 'bar', baz: 42 };
Object.entries(obj)
console.log("🚀 ~ Object.entries(obj):", Object.entries(obj))
// [ ["foo", "bar"], ["baz", 42] ]
Object.fromEntries([
    ['foo', 'bar'],
    ['baz', 42]
  ])

  const fromEntries = Object.fromEntries([
    ['foo', 'bar'],
    ['baz', 42]
  ])
  console.log("🚀 ~ fromEntries:", fromEntries)
console.log("🚀 ~ Object.fromEntries", Object.fromEntries([
    ['foo', 'bar'],
    ['baz', 42]
  ]))
console.log(Math.sign(true));
Math.hypot(9, 5);// 5


const pets = [
  { gender: '男', name: '张三' },
  { gender: '女', name: '李四' },
  { gender: '男', name: '王五' }
];

const res = Object.groupBy(pets, pet => pet.gender);
console.log(res);

